<div class="municipiosUsers_asignacion">
	<h2><?php __('Asignacion de Municipios a Usuarios');?></h2>
	<table cellpadding="0" cellspacing="0" class="tabla_formulario">
	<tr>
			<th><?php echo $this->Paginator->sort('Usuario','MunicipiosUser.user_id');?></th>
			<th class="actions"></th>
	</tr>
	<?php
	$i = 0;
	foreach ($users as $user):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td>
				<?php echo $user['User']['nombre'];?>		
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Asignar Municipios', true), array('action' => 'asignacion', $user['User']['id'])); ?>
			<?php echo $this->Html->link(__('Editar Asignacion', true), array('action' => 'editar_asignacion', $user['User']['id'])); ?>			
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
		<?php echo $this->Paginator->counter(array('format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de %count% en total,
		 														   empieza con el registro %start%, termina en %end%', true)));?>
	</p>
	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 	 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
